package com.example.demo.tools;

import com.alibaba.excel.EasyExcel;
import com.example.demo.bean.Menus;

import java.io.File;


public class ExcelUtils {
    //读取excel数据
    public static void readExcelContent(){
        String path = "src/main/resources/static/1.xls";
        File file = new File(path);
        EasyExcel.read(file.getAbsolutePath(), Menus.class, new MenuListener()).sheet().doRead();

    }
}
